<template>
	<div class="dialog animated" :class="open? 'fadeIn':'fadeOut'" v-show="show">
		<div class="panel animated" :class="open? 'zoomIn':''">
			<div class="title">
				导入线索
				<div class="close" @click="cancel()"></div>
			</div>
			<div class="form">
				弹窗内容
				
			</div>
			<div class="btn_div">
				<div class="btn_sure" @click="sure()">确 认</div>
				<div class="btn_cancel" @click="cancel()">取 消</div>
			</div>
		</div>
	
	</div>
</template>

<script>
var vm,$fileInput;
export default {
	data : function() {
		return {
			show : false,
			open : false,
		}
	},
	methods : {
		init : function(data) {
			vm.show = true;
			vm.open = true;
			console.log("打开参数:"+data);
		},
		cancel : function() {
			//隐藏弹窗
			vm.open = false;
			setTimeout(function() {
				vm.show = false;
			},500);
		},
		sure : function() {
			vm.$emit('callback',"添加成功");
			vm.cancel();
		},
	},
	created : function() {
		vm = this;
	}
}
</script>
<style scoped src="@/style/module/dialog.css"></style>
<style scoped>
	.panel {
		width: 7rem;
	}
	.form {
		padding: 0 0.3rem;
		font-size: 0.16rem;
		color: #666666;
	}
</style>